Skip to content

Conversation

robertky
Copy link
Member

Summary

  • Add a reproducible 500-album MusicBrainz snapshot and a non-destructive, repeatable PostgreSQL importer.
  • Preserve seeded album IDs and existing reviews/crate items when matching/importing albums.
  • Import the snapshot during deployment after migrations, and document the source, licensing, and import workflow.
  • Validate release-group IDs, genre presence, track numbers, and fetch-script count settings.

Closes #63

Verification

  • pnpm format:check
  • pnpm lint
  • pnpm typecheck
  • pnpm test (client: 87 passed; server: 40 passed, 12 skipped)
  • pnpm build
  • Invalid fetch-count configuration rejected before network access.

The PostgreSQL import integration test is skipped because TEST_DATABASE_URL and a local PostgreSQL instance were unavailable in this environment.

@robertky robertky requested a review from a team as a code owner October 27, 2026 14:48
@rachelks rachelks changed the title feat: import real MusicBrainz album catalog (#63) feat: #63 import real MusicBrainz album catalog Oct 27, 2026
Copy link
Member

@rachelks rachelks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran the full test suite locally against PostgreSQL, and all 139 tests passed (87 client, 52 server). I found one issue with the album matching logic that should be fixed before merging (see inline comment). Otherwise, I didn't find any additional blocking issues in the review.

rachelks
rachelks previously approved these changes Oct 28, 2026
Copy link
Member

@rachelks rachelks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The album matching issue is fixed now! I reran the full test suite locally against PostgreSQL (140 tests passed), imported the MusicBrainz snapshot, and verified that all three Color Humano albums appear separately. Reimporting also worked as expected (0 new, 500 matched).

Looks good to me!

@rachelks rachelks merged commit d8435d4 into main Oct 28, 2026
2 checks passed
@rachelks rachelks deleted the feat/63-import-real-albums branch October 29, 2026 15:36
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import real album data into Crate
2 participants